package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.ITaskRecordLogDAO;
import org.jsbd.boss.domian.channel.TaskRecord;
import org.jsbd.boss.domian.channel.TaskRecordVo;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

@Service("taskRecordLogDao")
public class TaskRecordLogDAOImpl extends CrackLogBaseDao implements IBatchExecutor<TaskRecord>, ITaskRecordLogDAO {

	@Override
	public void execute(List<TaskRecord> records) {
		super.batchInsert("qy_task_record_log.INSERT_TASK_RECORD_LOG", records);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.ITaskRecordLogDAO#selectRecords(org.jsbd.boss.domian
	 * .channel.TaskRecord)
	 */
	@Override
	public List<TaskRecord> selectRecords(TaskRecordVo record) {
		return super.queryForList("qy_task_record_log.SELECT_TASK_RECORD_LOG", record);
	}

	@Override
	public void remove(TaskRecordVo record) {
		super.delete("qy_task_record_log.DELETE_TASK_RECORD_LOG", record);
	}
}
